package com.tools;

public class ExceptionShow {
	/**
	 * 将异常的信息返回
	 * @param e
	 * @return
	 */
	public static String getException(Exception e){
		String err=e.getMessage()+":";
		StackTraceElement[] stackTrace = e.getStackTrace();
		for (StackTraceElement stackTraceElement : stackTrace) {
			err+=stackTraceElement+":";
		}
		return err;
	}

}
